class Project < ActiveRecord::Base
   has_many :tasks, :dependent => :destroy # if a project is destroyed, the tasks too
   has_and_belongs_to_many :users
   
   validates_presence_of :name
   #validates_uniqueness_of :name
end
